﻿using System;
using System.Collections.Generic;
using BuiltInT4Templates.Models;

namespace BuiltInT4Templates
{
    public class SessionRepository
    {
        public IEnumerable<CodeCampSession> GetAll()
        {
            yield return new CodeCampSession
                             {
                                 NumberOfAttendees = 15,
                                 SessionStartTime = DateTime.Now,
                                 Speaker = "Eric Hexter",
                                 Title = "Put your ASP.Net MVC Views in Hyperdrive with T4"
                             };
            yield return new CodeCampSession
                            {
                                NumberOfAttendees = 45,
                                SessionStartTime = DateTime.Now.AddHours(-2),
                                Speaker = "Eric Hexter",
                                Title = "Project Automation"
                            };
            yield return new CodeCampSession
                            {
                                NumberOfAttendees = 50,
                                SessionStartTime = DateTime.Now.AddHours(3),
                                Speaker = "Jeffrey Palermo",
                                Title = "ASP.Net MVC in Action"
                            };
        }
    }
}